using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_PHIEUXUATKHOCT: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_PHIEUXUATKHOCTFields
		{
			Id,
			Sophieu,
			Mavt,
			Mavach,
			Solo,
			Soluong,
			Dongia,
			Vat,
			Thanhtien,
			Ngaysx,
			Hansd,
			DonthuocId,
			Ghichu,
            TraLai
		}
		#endregion

		#region Data Members

			long _id;
			string _sophieu;
			string _mavt;
			long? _mavach;
			string _solo;
			double? _soluong;
			double? _dongia;
			double? _vat;
			double? _thanhtien;
			DateTime? _ngaysx;
			DateTime? _hansd;
			int? _donthuocId;
			string _ghichu;
            int _traLai;

		#endregion

		#region Properties

		public long  Id
		{
			 get { return _id; }
			 set
			 {
				 if (_id != value)
				 {
					_id = value;
				 }
			 }
		}

		public string  Sophieu
		{
			 get { return _sophieu; }
			 set
			 {
				 if (_sophieu != value)
				 {
					_sophieu = value;
				 }
			 }
		}

		public string  Mavt
		{
			 get { return _mavt; }
			 set
			 {
				 if (_mavt != value)
				 {
					_mavt = value;
				 }
			 }
		}

		public long?  Mavach
		{
			 get { return _mavach; }
			 set
			 {
				 if (_mavach != value)
				 {
					_mavach = value;
				 }
			 }
		}

		public string  Solo
		{
			 get { return _solo; }
			 set
			 {
				 if (_solo != value)
				 {
					_solo = value;
				 }
			 }
		}

		public double?  Soluong
		{
			 get { return _soluong; }
			 set
			 {
				 if (_soluong != value)
				 {
					_soluong = value;
				 }
			 }
		}

		public double?  Dongia
		{
			 get { return _dongia; }
			 set
			 {
				 if (_dongia != value)
				 {
					_dongia = value;
				 }
			 }
		}

		public double?  Vat
		{
			 get { return _vat; }
			 set
			 {
				 if (_vat != value)
				 {
					_vat = value;
				 }
			 }
		}

		public double?  Thanhtien
		{
			 get { return _thanhtien; }
			 set
			 {
				 if (_thanhtien != value)
				 {
					_thanhtien = value;
				 }
			 }
		}

		public DateTime?  Ngaysx
		{
			 get { return _ngaysx; }
			 set
			 {
				 if (_ngaysx != value)
				 {
					_ngaysx = value;
				 }
			 }
		}

		public DateTime?  Hansd
		{
			 get { return _hansd; }
			 set
			 {
				 if (_hansd != value)
				 {
					_hansd = value;
				 }
			 }
		}

		public int?  DonthuocId
		{
			 get { return _donthuocId; }
			 set
			 {
				 if (_donthuocId != value)
				 {
					_donthuocId = value;
				 }
			 }
		}

		public string  Ghichu
		{
			 get { return _ghichu; }
			 set
			 {
				 if (_ghichu != value)
				 {
					_ghichu = value;
				 }
			 }
		}
        public int TraLai
        {
            get { return _traLai; }
            set
            {
                if (_traLai != value)
                {
                    _traLai = value;
                }
            }
        }

		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("Id", "Id"));
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("Sophieu", "Sophieu"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Sophieu", "Sophieu",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Mavt", "Mavt",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Solo", "Solo",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Ghichu", "Ghichu",100));
		}

		#endregion

	}
}
